<?xml version="1.0" encoding="UTF-8"?>
<!--
    Document: $Id: Sample-6-multiple-packages.xml 2124 2009-01-30 20:22:20Z ys34 $
    Original: 7/19/2007
    LEXS version  : 3.1.4
    Description   : 
   	Sample XML instance for the publish message that illustrates the following:
	a) Multiple packages in a single message
   	b) Use of SourceIDText property to identify a person in both packages as being the same person
   	c) Use of LogicalIDText property to denote that a person is both packages is believed to be the same person
   	d) Use of a single binary image for multiple person records, i.e. the common person in the packages share the same picture
        e) Use of lexs:DisseminationCriteria ( DataItemPackage 1: s:id="dip1" ) and lexs:DisseminationCriteriaValue ( DataItemPackage 2: s:id="dip1") element. 
-->
<lexspd:doPublish 
    xmlns:new="http://somewhere.gov/new-community" 
    xmlns:lexspd="http://usdoj.gov/leisp/lexs/publishdiscover/3.1" 
    xmlns:j="http://niem.gov/niem/domains/jxdm/4.0"
    xmlns:nc="http://niem.gov/niem/niem-core/2.0"
    xmlns:s="http://niem.gov/niem/structures/2.0" 
    xmlns:lexs="http://usdoj.gov/leisp/lexs/3.1" 
    xmlns:lexslib="http://usdoj.gov/leisp/lexs/library/3.1" 
    xmlns:lexsdigest="http://usdoj.gov/leisp/lexs/digest/3.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://usdoj.gov/leisp/lexs/publishdiscover/3.1 ../../xsd/publish-discover/3.1/publish-discover.xsd">
    <lexs:PublishMessageContainer>
        <lexs:PublishMessage>
            <lexs:PDMessageMetadata>
                <lexs:LEXSVersion>3.1.4</lexs:LEXSVersion>
                <lexs:MessageDateTime>2006-12-01T09:30:47.0Z</lexs:MessageDateTime>
                <lexs:MessageSequenceNumber>1</lexs:MessageSequenceNumber>
                <lexs:DataSensitivity>SBU</lexs:DataSensitivity>
            </lexs:PDMessageMetadata>
            <!--=======================  Data Submitter Metadata  =======================-->
            <lexs:DataSubmitterMetadata>
                <lexs:SystemIdentifier>
                    <nc:OrganizationName>Hypothetical Organization C</nc:OrganizationName>
                    <lexs:SystemID>SysC</lexs:SystemID>
                </lexs:SystemIdentifier>
                <lexs:SystemContact>
                    <nc:PersonGivenName>Michael</nc:PersonGivenName>
                    <nc:PersonSurName>Park</nc:PersonSurName>
                    <!-- Contact telephone number is required, other kinds of numbers optional -->
                    <nc:ContactTelephoneNumber>
                        <!-- Phone number listed here split into parts, although the full phone number field could be used instead or in addition to the parts -->
                        <nc:NANPTelephoneNumber>
                            <nc:TelephoneAreaCodeID>202</nc:TelephoneAreaCodeID>
                            <nc:TelephoneExchangeID>555</nc:TelephoneExchangeID>
                            <nc:TelephoneLineID>1212</nc:TelephoneLineID>
                        </nc:NANPTelephoneNumber>
                    </nc:ContactTelephoneNumber>
                </lexs:SystemContact>
            </lexs:DataSubmitterMetadata>
            <!--==================== 1st package ====================-->
            <lexs:DataItemPackage s:id="dip1">
                <lexs:PackageMetadata>
                    <lexs:DataItemID>12345678</lexs:DataItemID>
                    <lexs:DataItemCompleteIndicator>true</lexs:DataItemCompleteIndicator>
                    <lexs:DataItemDate>1967-08-13</lexs:DataItemDate>
                    <lexs:DataItemReferenceID>12345678</lexs:DataItemReferenceID>
                    <lexs:DataItemPublishInstruction>Insert</lexs:DataItemPublishInstruction>
                    <lexs:DataItemStatus>Valid</lexs:DataItemStatus>
                    <!--=======================  Data Owner Metadata  =======================-->
                    <lexs:DataOwnerMetadata>
                        <lexs:DataOwnerIdentifier>
                            <lexs:OriginatingAgencyID>AA1234567</lexs:OriginatingAgencyID>
                            <nc:OrganizationName>Hypothetical Agency A</nc:OrganizationName>
                            <lexs:SystemID>SysA</lexs:SystemID>
                        </lexs:DataOwnerIdentifier>
                        <lexs:DataOwnerContact>
                            <nc:PersonGivenName>Will</nc:PersonGivenName>
                            <nc:PersonSurName>Jones</nc:PersonSurName>
                            <nc:ContactTelephoneNumber>
                                <nc:FullTelephoneNumber>
                                    <nc:TelephoneNumberFullID>111-222-3333</nc:TelephoneNumberFullID>
                                </nc:FullTelephoneNumber>
                            </nc:ContactTelephoneNumber>
                        </lexs:DataOwnerContact>
                    </lexs:DataOwnerMetadata>
                    <lexs:DisseminationCriteria>white</lexs:DisseminationCriteria>
                </lexs:PackageMetadata>
                <lexs:Digest>
                    <!--==================  Person A, same as Person C in the 2nd package as noted by identical SourceIDText  (Record ID)==================-->
                    <lexsdigest:EntityPerson s:id="EPerson1">
                        <lexsdigest:Metadata s:id="MPerson1">
                            <nc:SourceIDText>P123</nc:SourceIDText>
                        </lexsdigest:Metadata>
                        <lexsdigest:Person s:id="Person1" s:metadata="MPerson1">
                            <nc:PersonAgeMeasure>
                                <nc:MeasurePointValue>29</nc:MeasurePointValue>
                                <nc:TimeUnitCode>ANN</nc:TimeUnitCode>
                            </nc:PersonAgeMeasure>
                            <nc:PersonName>
                                <nc:PersonGivenName>John</nc:PersonGivenName>
                                <nc:PersonSurName>Doe</nc:PersonSurName>
                            </nc:PersonName>
                            <nc:PersonSSNIdentification>
                                <nc:IdentificationID>555443333</nc:IdentificationID>
                            </nc:PersonSSNIdentification>
                        </lexsdigest:Person>
                    </lexsdigest:EntityPerson>
                    <!--============  Person B, may be the same person as Person D in the 2nd package as noted by identical LogicalIDText  ============-->
                    <lexsdigest:EntityPerson>
                        <lexsdigest:Metadata s:id="MPerson2">
                            <nc:SourceIDText>P234</nc:SourceIDText>
                            <lexsdigest:LogicalIDText>P555</lexsdigest:LogicalIDText>
                        </lexsdigest:Metadata>
                        <lexsdigest:Person s:id="Person2" s:metadata="MPerson2">
                            <nc:PersonAgeMeasure>
                                <nc:MeasurePointValue>30</nc:MeasurePointValue>
                                <nc:TimeUnitCode>ANN</nc:TimeUnitCode>
                            </nc:PersonAgeMeasure>
                            <nc:PersonName>
                                <nc:PersonGivenName>Bill</nc:PersonGivenName>
                                <nc:PersonSurName>Smith</nc:PersonSurName>
                            </nc:PersonName>
                        </lexsdigest:Person>
                    </lexsdigest:EntityPerson>
                    <!--=======================  Associations  =======================-->
                    <lexsdigest:Associations>
                        <lexsdigest:EntityAttachmentLinkAssociation>
                            <lexsdigest:EntityReference s:ref="EPerson1"/>
                            <lexsdigest:AttachmentLinkReference s:ref="PAttachment1"/>
                        </lexsdigest:EntityAttachmentLinkAssociation>
                        <nc:FriendshipAssociation>
                            <nc:PersonReference s:ref="Person1"/>
                            <nc:PersonReference s:ref="Person2"/>
                        </nc:FriendshipAssociation>
                    </lexsdigest:Associations>
                </lexs:Digest>
                <!--======================= Data from another community ======================-->
                <lexs:StructuredPayload>
                    <lexs:StructuredPayloadMetadata>
                        <lexs:CommunityURI>http://somewhere.gov/new-community</lexs:CommunityURI>
                        <lexs:CommunityDescription>New Community</lexs:CommunityDescription>
                        <lexs:CommunityVersion>1.0</lexs:CommunityVersion>
                    </lexs:StructuredPayloadMetadata>
                    <new:Report>
                        <new:Person>
                            <nc:PersonHairStyleText>strawberry blond</nc:PersonHairStyleText>
                            <lexslib:SameAsDigestReference lexslib:ref="Person1"/>
                        </new:Person>
                    </new:Report>
                </lexs:StructuredPayload>
                <!--=======================  Package Attachment Link for Mug Shot  =======================-->
                <lexs:AttachmentLink s:id="PAttachment1">
                    <lexs:AttachmentURI>http://www.gtri.org/LEXS/examples/mugshot1.jpg</lexs:AttachmentURI>
                    <lexs:AttachmentViewableIndicator>true</lexs:AttachmentViewableIndicator>
                    <nc:BinaryDescriptionText>Mug shot for John Doe</nc:BinaryDescriptionText>
                </lexs:AttachmentLink>
            </lexs:DataItemPackage>
            <!--==================== 2nd package ====================-->
            <lexs:DataItemPackage s:id="dip2">
                <lexs:PackageMetadata>
                    <lexs:DataItemID>23456789</lexs:DataItemID>
                    <lexs:DataItemCompleteIndicator>true</lexs:DataItemCompleteIndicator>
                    <lexs:DataItemDate>1968-09-01</lexs:DataItemDate>
                    <lexs:DataItemReferenceID>23456789</lexs:DataItemReferenceID>
                    <lexs:DataItemPublishInstruction>Insert</lexs:DataItemPublishInstruction>
                    <lexs:DataItemStatus>Valid</lexs:DataItemStatus>
                    <!--=======================  Data Owner Metadata  =======================-->
                    <lexs:DataOwnerMetadata>
                        <lexs:DataOwnerIdentifier>
                            <lexs:OriginatingAgencyID>AA1234567</lexs:OriginatingAgencyID>
                            <nc:OrganizationName>Hypothetical Agency A</nc:OrganizationName>
                            <lexs:SystemID>SysA</lexs:SystemID>
                        </lexs:DataOwnerIdentifier>
                        <lexs:DataOwnerContact>
                            <nc:PersonGivenName>Will</nc:PersonGivenName>
                            <nc:PersonSurName>Jones</nc:PersonSurName>
                            <nc:ContactTelephoneNumber>
                                <nc:FullTelephoneNumber>
                                    <nc:TelephoneNumberFullID>111-222-3333</nc:TelephoneNumberFullID>
                                </nc:FullTelephoneNumber>
                            </nc:ContactTelephoneNumber>
                        </lexs:DataOwnerContact>
                    </lexs:DataOwnerMetadata>
                    <lexs:DisseminationCriteriaValue>
                        <lexs:DisseminationCriteriaDomainText>red</lexs:DisseminationCriteriaDomainText>
                        <lexs:DisseminationCriteriaText>NDEX</lexs:DisseminationCriteriaText>
                    </lexs:DisseminationCriteriaValue>
                </lexs:PackageMetadata>
                <lexs:Digest>
                    <!--==================  Person C, same as Person A in the 1st package as noted by identical SourceIDText  ==================-->
                    <lexsdigest:EntityPerson s:id="EPerson3">
                        <lexsdigest:Metadata s:id="MPerson3">
                            <nc:SourceIDText>P123</nc:SourceIDText>
                        </lexsdigest:Metadata>
                        <lexsdigest:Person s:id="Person3" s:metadata="MPerson3">
                            <nc:PersonAgeMeasure>
                                <nc:MeasurePointValue>29</nc:MeasurePointValue>
                                <nc:TimeUnitCode>ANN</nc:TimeUnitCode>
                            </nc:PersonAgeMeasure>
                            <nc:PersonName>
                                <nc:PersonGivenName>John</nc:PersonGivenName>
                                <nc:PersonSurName>Doe</nc:PersonSurName>
                            </nc:PersonName>
                            <nc:PersonSSNIdentification>
                                <nc:IdentificationID>555443333</nc:IdentificationID>
                            </nc:PersonSSNIdentification>
                        </lexsdigest:Person>
                    </lexsdigest:EntityPerson>
                    <!--============  Person D, may be the same person as Person B in the 1st package as noted by identical LogicalIDText  ============-->
                    <lexsdigest:EntityPerson>
                        <lexsdigest:Metadata s:id="MPerson4">
                            <nc:SourceIDText>P888</nc:SourceIDText>
                            <lexsdigest:LogicalIDText>P555</lexsdigest:LogicalIDText>
                        </lexsdigest:Metadata>
                        <lexsdigest:Person s:id="Person4" s:metadata="MPerson4">
                            <nc:PersonAgeMeasure>
                                <nc:MeasurePointValue>33</nc:MeasurePointValue>
                                <nc:TimeUnitCode>ANN</nc:TimeUnitCode>
                            </nc:PersonAgeMeasure>
                            <nc:PersonName>
                                <nc:PersonGivenName>Bill</nc:PersonGivenName>
                                <nc:PersonSurName>Smitherman</nc:PersonSurName>
                            </nc:PersonName>
                        </lexsdigest:Person>
                    </lexsdigest:EntityPerson>
                    <!--=======================  Associations  =======================-->
                    <lexsdigest:Associations>
                        <lexsdigest:EntityAttachmentLinkAssociation>
                            <lexsdigest:EntityReference s:ref="EPerson3"/>
                            <lexsdigest:AttachmentLinkReference s:ref="PAttachment2"/>
                        </lexsdigest:EntityAttachmentLinkAssociation>
                        <nc:FriendshipAssociation>
                            <nc:PersonReference s:ref="Person3"/>
                            <nc:PersonReference s:ref="Person4"/>
                        </nc:FriendshipAssociation>
                    </lexsdigest:Associations>
                </lexs:Digest>
                <!--======================= Data from another community ======================-->
                <lexs:StructuredPayload>
                    <lexs:StructuredPayloadMetadata>
                        <lexs:CommunityURI>http://somewhere.gov/new-community</lexs:CommunityURI>
                        <lexs:CommunityDescription>New Community</lexs:CommunityDescription>
                        <lexs:CommunityVersion>1.0</lexs:CommunityVersion>
                    </lexs:StructuredPayloadMetadata>
                    <new:Report>
                        <new:Person>
                            <nc:PersonHairStyleText>strawberry blond</nc:PersonHairStyleText>
                            <lexslib:SameAsDigestReference lexslib:ref="Person3"/>
                        </new:Person>
                    </new:Report>
                </lexs:StructuredPayload>
                <!--=======================  Package Attachment Link for Mug Shot  =======================-->
                <lexs:AttachmentLink s:id="PAttachment2">
                    <lexs:AttachmentURI>http://www.gtri.org/LEXS/examples/mugshot1.jpg</lexs:AttachmentURI>
                    <lexs:AttachmentViewableIndicator>true</lexs:AttachmentViewableIndicator>
                    <nc:BinaryDescriptionText>Mug shot for John Doe</nc:BinaryDescriptionText>
                </lexs:AttachmentLink>
            </lexs:DataItemPackage>
            <!--=======================  Message Attachment containing Mug Shot, which is actually a very small mug shot of OJ Simpson  =======================-->
            <!-- Note that this attachment is used for the mug shot for Person A in the 1st package, and Person C in the 2nd package, since they are the same person -->
            <lexs:Attachment>
                <lexs:AttachmentURI>http://www.gtri.org/LEXS/examples/OJmugshot.jpg</lexs:AttachmentURI>
                <nc:Binary>
                    <nc:BinaryBase64Object>
                        /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
                        HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
                        MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAA4ACoDASIA
                        AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
                        AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
                        ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
                        p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
                        AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
                        BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK
                        U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3
                        uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2XpWP
                        4k8UaT4T04X2rXBijYlYlVSzStgnAA+nU4Hqa1Li4htbWW5nkCQwqZJJD0VQMk18t+J/EVx478U3
                        F1MX+xo5itISNvlxZ4yOeT1PPX2AA0nJRV2OMXJ2R1t/8f8AVJJV/szRLSCIZ3C4kaUt6Yxtx+tb
                        Wj/HuwutSWDVdIextWbH2iOczbPqu0Ejr0/KuRsPCsTqMW64A64FZmteGUhjaQJsI544rjWNTdjs
                        eCkle59NWV9a6lZRXtlPHcW0q7klQ5DCpy3NeC/BXxDcad4ll8NXErvaXcbNboxJEcq5Jx2UFd+f
                        UgV7z3rsi+ZXOGS5XY5H4p3k1j8Ndblt5NrNEsROM5WSRVYfirEfjXzl4fZUuIx5crFuT5a5IFfR
                        PxTh874d6pbB0VphGEDdyJFbH5Ka8g8KaTLLp0P2ecxeZnzWXGQccZyDwDg471zYqaSszqwsJN8y
                        PUPD+nRvYCYNuRo+MjnPvXIeMzFppzK4+YZ8tUzUst6umanLZWcrFFtxukk/5aHaMtjoMnngVYm0
                        y7uNKt7+xuCkjKfNjYA5YcA5xnHHIzznt0rzbR27Hpe8te55RHqX9k+KtP1SFd/2eaK4UA434bOP
                        xxX133r5W13RFPiWGFPMIbMkojByoHJx+tfU5ZMmvVoSTjoeTWptTdzK8UaAviPQprAuEkJDRsRk
                        Aj/J/OvBdJvDoGsXOk3Lbxa3EkLeXnDFTjj64r6T6/jXzR41Qab8TtWTqDOWGD3YBj+RNLE0lJGm
                        HquLN2K6t9Q1e9uZ0GJlES5z8ueABgjoAPyrQtvEFvaaJJbcqYyduT1BPr7H+ftXOaNDN9mLrb/a
                        EzkuZSpX61Q1m52Qyhvvk8YOQv8AkVwOnc9H2lkdb4T8LTeL9butUuHRbOCRY2yTl+5UY9sD8c84
                        r2onnoteafBbUbeTQL6waVfta3Zm8nPzCIqgDY9MgivTdy5616VGmlHQ8qvVbkfLmv8AxS8VeIop
                        bea9S1tpAA0Nmvlg8YPPLYOeRnFbN5oKX1lo88oZUurC2IYEfK0cSrx/wEKf+BUUVGIehWG1kwtN
                        P1ux8yOGeEIcggA5PSmL4enud99qBAUfdjX+ZoorzuZ9z01GPY6JdAjf4Z3Gu2Xm2uq2pmube6gY
                        xyRgEqwyOcFVPHvXEj4teOwABr3A6ZtYf/iKKK9SjpE8irrNn//Z
                    </nc:BinaryBase64Object>
                    <nc:BinaryDescriptionText>Mug shot for John Doe</nc:BinaryDescriptionText>
                    <nc:BinaryFormatID>image/jpg</nc:BinaryFormatID>
                    <nc:BinaryFormatStandardName>MIME</nc:BinaryFormatStandardName>
                    <nc:BinaryCategoryText>Mug Shot</nc:BinaryCategoryText>
                </nc:Binary>
            </lexs:Attachment>
        </lexs:PublishMessage>
    </lexs:PublishMessageContainer>
</lexspd:doPublish>
